
<!-- 默认首页 -->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>电商网站首页</title>
    <style>
        body{
            font-family: Arial, sans-serif;
            background-color: #f7f7f7;
            margin: 0;
            padding: 0;
        }
        header{
            background-color: #333;
            color: #fff;
            padding: 10px 0;
            text-align: center;
        }
        nav{
            display: flex;
            justify-content: center;
            background-color: #444;
        }
        nav a{
            color: #fff;
            text-decoration: none;
            padding: 10px 20px;
            display: inline-block;
        }
        nav a:hover{
            background-color: #555;
        }
        .main-content{
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding: 20px;
        }
        .product-card{
            background-color: #fff;
            margin: 10px;
            padding: 20px;
            width: 300px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        .product-card img{
            max-width: 100%;
            height: auto;
        }
        .product-card h3{
            font-size: 20px;
            color: #333;
            margin: 10px 0;
        }
        .product-card p{
            font-size: 16px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
        }
        .product-card button{
            padding: 10px 20px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
        }
        .product-card button:hover{
            background-color: #0056b3;
        }
        footer{
            background-color: #333;
            color: #fff;
            text-align: center;
            padding: 10px 0;
            position: absolute;
            bottom: 0;
            width: 100%;
        }
    </style>
</head>
<body>
    <header>
        <h1>电商网站名称</h1>
    </header>
    <nav>
        <a href="#">首页</a>
        <a href="#">产品分类</a>
        <a href="#">促销活动</a>
        <a href="#">关于我们</a>
        <a href="/login.html">登录</a>
        <a href="/register.html">注册</a>
    </nav>
    <div class="main-content">
        <div class="product-card">
            <img src="image/1.jpg" alt="产品1">
            <!-- <img src="product1.jpg" alt="产品1"> -->

            <h3>产品1名称</h3>
            <p>产品1简介，详细介绍产品1的特点和优势。</p>
            <button>立即购买</button>
        </div>
        <div class="product-card">
            <img src="image/2.jpg" alt="产品2">
            <!-- <img src="product2.jpg" alt="产品2"> -->

            <h3>产品2名称</h3>
            <p>产品2简介，详细介绍产品2的特点和优势。</p>
            <button>立即购买</button>
        </div>
        <div class="product-card">
            <img src="image/3.jpg" alt="产品3">
            <!-- <img src="product3.jpg" alt="产品3"> -->

            <h3>产品3名称</h3>
            <p>产品3简介，详细介绍产品3的特点和优势。</p>
            <button>立即购买</button>
        </div>
        <!-- 可以根据需要添加更多产品卡片 -->
    </div>
    <footer>
        <p>版权所有 © 电商网站名称</p>
    </footer>
</body>
</html>